#pragma once

#include <QWidget>
#include <QVTKOpenGLNativeWidget.h>
#include <QDebug>
#include <functional>

class NewVTKOpenGLWidget : public QVTKOpenGLNativeWidget
{
public:
    NewVTKOpenGLWidget(QWidget * parent = nullptr);
    ~NewVTKOpenGLWidget();

    // void setWidgetAndPos(QWidget * widget, int row, int col);

    void setCallBack(std::function<void(void)> cb)
    {
        m_cb = cb;
    }

    void mouseDoubleClickEvent(QMouseEvent * event);

private:
    // QWidget *                   m_widget = nullptr;
    // int                         m_row;
    // int                         m_col;
    std::function<void(void)>       m_cb;
};




